package com.gigmissions.client.model;

import java.util.Date;
import java.util.List;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;


@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class GigDao {
 	@PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Long id;

    @Persistent
    private String username;

    @Persistent
    private String description;

    @Persistent
    private Date date;
    
    @Persistent
    private String title;
    
    @Persistent
    private double price;
    @Persistent
    private long venueId;
    @Persistent
    private List<Long> actIds;
    
    
    
    public List<Long> getActIds() {
		return actIds;
	}

	public void setActIds(List<Long> actIds) {
		this.actIds = actIds;
	}

	public long getVenueId() {
		return venueId;
	}

	public void setVenueId(long venueId) {
		this.venueId = venueId;
	}

	public GigDao(String title, String username, String description, Date date, double price) {
        this.username = username;
        this.description = description;
        this.date = date;
        this.title = title;
        this.price = price;
    }

    public Long getId() {
        return id;
    }
    
    
    
	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	
	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
}
